<template>
	<view class="bz p-2">
		<view class="bz p-2 bg-white b-radius1">
			<view class="list d-flex flex-nowrap a-center j-sb">
				<view class="title">抬头类型</view>
				<view class="right">
					<radio-group @change="radioChange" class="d-flex flex-nowrap a-center">
						<label class="d-flex flex-nowrap a-center ml-2" v-for="(item, index) in items" :key="item.value">
							<view>
								<radio :value="item.value" :checked="index === current" />
							</view>
							<view class="ml-1">{{item.name}}</view>
						</label>
					</radio-group>
				</view>
			</view>
			<view class="list d-flex flex-nowrap a-center j-sb">
				<view class="title">公司抬头</view>
				<input type="text" placeholder="请输入公司抬头" class="input" placeholder-class="input"/>
			</view>
			<view class="list d-flex flex-nowrap a-center j-sb">
				<view class="title">公司税号</view>
				<input type="text" placeholder="请输入公司税号" class="input" placeholder-class="input"/>
			</view>
			<view class="list d-flex flex-nowrap a-center j-sb">
				<view class="des">输入玩真的抬头信息，以开具增值税专用发票</view>
			</view>
			<view class="list d-flex flex-nowrap a-center j-sb">
				<view class="title">公司地址</view>
				<input type="text" placeholder="请输入公司地址" class="input" placeholder-class="input"/>
			</view>
			<view class="list d-flex flex-nowrap a-center j-sb">
				<view class="title">公司电话</view>
				<input type="text" placeholder="请输入公司电话" class="input" placeholder-class="input"/>
			</view>
			<view class="list d-flex flex-nowrap a-center j-sb">
				<view class="title">开户行</view>
				<input type="text" placeholder="请输入开户行" class="input" placeholder-class="input"/>
			</view>
			<view class="list d-flex flex-nowrap a-center j-sb">
				<view class="title">银行账户</view>
				<input type="text" placeholder="请输入银行账户" class="input" placeholder-class="input"/>
			</view>
		</view>
		
		<view class="footer">提交</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				items: [{
						value: 'USA',
						name: '公司',
						checked: 'true'
					},
					{
						value: 'CHN',
						name: '个人/非企业'
					},
				],
				current: 0
			}
		},
		methods: {
			radioChange: function(evt) {
				for (let i = 0; i < this.items.length; i++) {
					if (this.items[i].value === evt.detail.value) {
						this.current = i;
						break;
					}
				}
			}
		}
	}
</script>

<style scoped lang="scss">
	.list{
		box-sizing: border-box;
		padding: 20rpx;
		height: 100rpx;
		border-bottom: 1rpx solid #f8f8f8;
		.title{
			font-size: 30rpx;
			font-family: SourceHanSansCN;
			font-weight: bold;
			color: #363636;
		}
		.input{
			font-size: 28rpx;
			color: #777;
			text-align: right;
			display: block;
		}
		.des{
			font-size: 25rpx;
			font-family: SourceHanSansCN;
			font-weight: 400;
			color: #AEAEAE;
		}
	}
	
	.footer{
		position: fixed;
		bottom: 20rpx;
		left:30rpx;
		right:30rpx;
		height: 80rpx;
		line-height: 80rpx;
		background: #D7B073;
		border-radius: 12rpx;
		font-size: 30rpx;
		text-align: center;
		font-family: SourceHanSansCN;
		font-weight: 400;
		color: #FFFFFF;
	}
</style>
